<!-- apps/frontend/templates/layout.php -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title><?php include_slot('title') ?></title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_javascripts() ?>
    <?php include_stylesheets() ?>
  </head>
  <body>
    <div id="container">
      <div id="user_info">
          <div id="common">
              <div class="user_login">
                <?php if ($sf_user->isAuthenticated ()): ?>
                    Ваш логин: <span><?php echo $sf_user->getLogin () ?></span>
                <?php endif; ?>
                &nbsp;
              </div>
	          <div class="login_link">
	            <?php if ($sf_user->isAuthenticated ()): ?>
	                <a href="<?php echo url_for('@logout?module=user&action=logout') ?>">Выйти</a>
	            <?php else: ?>
	                <a href="<?php echo url_for('@login?module=user&action=login') ?>">Войти</a>
	            <?php endif; ?>                          
	          </div>                            
          </div>      
      </div>
      <br/>
      <div id="page_header">
          <h1><?php include_slot('header') ?></h1>
      </div>      
      <div id="content">
          <?php echo $sf_content ?>
      </div>
    </div>
  </body>
</html>